#coding=utf-8
#!/usr/bin/python





#     cd /d D:\python26 
#     python.exe D:\py\demo\word_to_html.py

#       python.exe  .\dev_test\word_to_html.py
   

"""


word 转成 html

依赖 pywin32-214.win32-py2.6.exe



"""
import win32com.client as wcom 
#from win32com import client as wc


doc_file = 'd:/x.doc'
html_file = 'd:/x.html'

word = wcom.Dispatch('Word.Application')
doc = word.Documents.Open(doc_file)
doc.SaveAs(html_file, 8)
doc.Close()
word.Quit()



    
